package exception.userdefined;

public class orderAmountException extends Exception{
	public orderAmountException(int stockAmount) {
		super();
		this.stockAmount = stockAmount;
	}
	private int stockAmount;//재고량이 부족시 재고량을 저장할 변수
	
	public int getStockAmount() {
		return stockAmount;
	}
	public void setStockAmount(int stockAmount) {
		this.stockAmount = stockAmount;
	}
	public orderAmountException () {}
	public orderAmountException(String message){
		super(message);
	}

}
